package shyvana;

public abstract class AbstractPlayer implements Player{
	private String name;
	protected Hand hand;
	protected Table table;
	public AbstractPlayer(String name, Table table){
		this.name = name;
		this.table = table;
		hand = new Hand(table.getDeck());
		Log.instance.newPlayer(this);
	}
	@Override
	public String getName() {
		return name;
	}
	@Override
	public void draw() {
		hand.draw();
		Log.instance.drawCards(this);
	}
	@Override
	public Hand getHand() {
		return hand;
	}
}
